﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace David_Albert
{
    public partial class FormModificarCat : Form
    {
        public Categoria a;
        public FormModificarCat(Categoria c)
        {
            InitializeComponent();
            this.txtIdCat.Text = c.Id.ToString();
            this.txtNomCat.Text = c.Categoria1;
        }

        private void btnModCanCat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnAcceModCat_Click(object sender, EventArgs e)
        {
            a = new Categoria(int.Parse(this.txtIdCat.Text), this.txtNomCat.Text);
            this.Close();
        }



       
    }
}
